glib_gen_prefix = __gst_debugutils
glib_gen_basename = debugutils

include $(top_srcdir)/common/gst-glib-gen.mak

built_sources = debugutils-marshal.c
built_headers = debugutils-marshal.h

BUILT_SOURCES = $(built_sources) $(built_headers)

CLEANFILES = $(BUILT_SOURCES)

EXTRA_DIST = debugutils-marshal.list

plugin_LTLIBRARIES = libgstdebugutilsbad.la

libgstdebugutilsbad_la_SOURCES = \
	gstdebugspy.c \
	fpsdisplaysink.c \
	debugutilsbad.c \
	gstchecksumsink.c \
	gstchecksumsink.h \
	gstchopmydata.c \
	gstchopmydata.h \
	gstcompare.c \
	gstcompare.h \
	gstdebugspy.h

nodist_libgstdebugutilsbad_la_SOURCES = $(BUILT_SOURCES)
libgstdebugutilsbad_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
libgstdebugutilsbad_la_LIBADD = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \
	-lgstvideo-$(GST_MAJORMINOR) \
	-lgstinterfaces-$(GST_MAJORMINOR) $(GST_LIBS)
libgstdebugutilsbad_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstdebugutilsbad_la_LIBTOOLFLAGS = --tag=disable-static

noinst_HEADERS = fpsdisplaysink.h

Android.mk: Makefile.am $(BUILT_SOURCES)
	androgenizer \
	-:PROJECT libgstdebugutils -:SHARED libgstdebugutils \
	 -:TAGS eng debug \
         -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
	 -:SOURCES $(libgstdebugutils_la_SOURCES) \
	 -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstdebugutils_la_CFLAGS) \
	 -:LDFLAGS $(libgstdebugutils_la_LDFLAGS) \
	           $(libgstdebugutils_la_LIBADD) \
	           -ldl \
	 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
		       LOCAL_MODULE_PATH:='$$(TARGET_OUT)/lib/gstreamer-0.10' \
	> $@
